import iconSvg from "@/components/iconSvg"; // svg组件

export default {
  install: (app) => {
    // 注册全局组件
    app.component("iconSvg", iconSvg);
    const requireAll = (reqireContext) =>
      reqireContext.keys().map(reqireContext);
    const req = require.context("@/components/iconSvg/icons", false, /\.svg$/);
    requireAll(req);
    console.log(requireAll(req), ">>>>>>>>>");
  },
};
